package com.wongoing.api.pay.service.impl;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

import org.apache.commons.lang3.math.NumberUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.wongoing.api.pay.service.OrderUnifiedEntranceService;


@Transactional
@Service("orderUnifiedEntranceService")
public class OrderUnifiedEntranceServiceImpl implements OrderUnifiedEntranceService{


	@Override
	public String OrderUnifiedEntrance(String payWay, String orderNum, String gmtPayment, String totalFee, String tradeNo,
			String buyerEmail) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException, IOException {
		int orderType = NumberUtils.toInt(orderNum.substring(10, 14));
		String resultStr = "fail";
		switch (orderType) {
		//拼团主订单
		case 101:
			break;
		//拼团子订单
		case 102:
			break;
		//需求主订单
		case 201:
			break;
		//需求子订单
		case 202:
			break;
		//商户钱包充值业务
		case 301:
			break;
		//商户钱包提现（转账业务）
		case 401:
			
			break;
		default:
			
			break;
		}
		return resultStr;
	}

	
}
